projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea586d
)
libxl: debug output for args and env when invoking hotplug script
author
Wei Liu
<wei.liu2@citrix.com>
Fri, 15 Apr 2016 11:56:03 +0000
(12:56 +0100)
committer
Wei Liu
<wei.liu2@citrix.com>
Wed, 6 Jul 2016 17:21:37 +0000
(18:21 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_device.c
b/tools/libxl/libxl_device.c
index 4717027821a4330a82fad8c17bf629f4d58dc8c0..b3213bea542db6fc2a822dce9e010348c46aafa4 100644
(file)
--- a/
tools/libxl/libxl_device.c
+++ b/
tools/libxl/libxl_device.c
@@
-1167,6
+1167,24
@@
static void device_hotplug(libxl__egc *egc, libxl__ao_device *aodev)
}
LOG(DEBUG, "calling hotplug script: %s %s", args[0], args[1]);
+ LOG(DEBUG, "extra args:");
+ {
+ const char *arg;
+ unsigned int x;
+
+ for (x = 2; (arg = args[x]); x++)
+ LOG(DEBUG, "\t%s", arg);
+ }
+ LOG(DEBUG, "env:");
+ {
+ const char *k, *v;
+ unsigned int x;
+
+ for (x = 0; (k = env[x]); x += 2) {
+ v = env[x+1];
+ LOG(DEBUG, "\t%s: %s", k, v);
+ }
+ }
nullfd = open("/dev/null", O_RDONLY);
if (nullfd < 0) {